[AI Manager] Add az aimanager model commands - #10217
Open
gloriahxr wants to merge 2 commits into
Open
Conversation
Add the 'az aimanager model' command group backed by the AIModels operations
of the vendored 2026-05-02-preview SDK:
* az aimanager model show -l <location> -n <model>
* az aimanager model list -l <location>
* az aimanager model calculate-cost -l <location> -n <model>
'calculate-cost' posts to
/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/aiModels/{modelName}/calculateCost
and returns the ranked GPU SKU pricing plans. Table transformers are provided
for 'list' and 'calculate-cost'.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Hi gloriahxr, |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
microsoft-github-policy-service
Bot
requested review from
Jessie (techworldhello),
Ximeng Zhao (xmzhao0822) and
Julie Zhu (yanzhudd)
August 14, 2026 08:01
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
Author
|
@microsoft-github-policy-service agree company="Microsoft" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 PR Validation —⚠️ Review suggested
Add the new
az aimanager modelcommand group, mapping to theAIModelsoperations of theMicrosoft.ContainerServiceaiModelsresource at api-version2026-05-02-preview.az aimanager model show -l <location> -n <model>GET .../locations/{location}/aiModels/{modelName}az aimanager model list -l <location>GET .../locations/{location}/aiModelsaz aimanager model calculate-cost -l <location> -n <model>POST .../locations/{location}/aiModels/{modelName}/calculateCostcalculate-costposts an empty request body to/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/aiModels/{modelName}/calculateCostand returns the ranked list of GPU SKU pricing plans (feasibility, per-replica hourly cost, max available replicas, estimated relative performance). No Azure or Kubernetes resources are provisioned.AI models are read-only, region-scoped catalog entries, so this group only exposes read/action commands - there is no create/update/delete, no
--resource-group, and no--no-wait.az aimanager model listis the intended way to discover the opaque model name used by--model-resource-idonaz aimanager namespace modeldeployment add.Table transformers are included for
listandcalculate-cost:The vendored SDK already contained
AIModelsOperationsand theCalculateCostRequest/CalculateCostResponsemodels, so no SDK regeneration was needed. Extension version bumped1.2.0->1.2.1b1with a matchingHISTORY.rstentry.Testing
test_aimodel.pyunit tests coveringshow/list/calculate-costplumbing (including thatcalculate-costsends an emptyCalculateCostRequestbody) and the new name validator.test_aimodel_scenario.pymocked scenario test exercising all three commands end-to-end through the CLI parser, following the existingtest_modeldeployment_scenario.pypattern.azdev style(flake8) clean andpylint10.00/10 against the repo configs; existingaimanagertests unaffected.This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
az aimanager model show | list | calculate-costGeneral Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install azdevrequired)About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update
src/index.jsonautomatically.You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify
src/index.json.